package com.woniuxy.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.pojo.Order;
import com.woniuxy.pojo.dto.MergeOrdersDTO;
import com.woniuxy.pojo.dto.OrderDTO;
import com.woniuxy.pojo.vo.OrderDetailVO;
import com.woniuxy.pojo.vo.StatusCountVO;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.http.ResponseEntity;

import java.util.List;

/**
* @author 29331
* @description 针对表【t_order(订单管理表)】的数据库操作Service
* @createDate 2025-06-04 16:14:26
*/
public interface OrderService extends IService<Order> {

    Page<Order> getAllOrder(Integer pageSize, Integer pageNum);

    List<Order> getOrderByStatus(Integer orderStatus);

    List<Integer> getOrderStatus();

    List<String> getOrderSource();

    List<Order> selectOrders(OrderDTO orderDTO);


    StatusCountVO getStatusCounts();

    List<Order> getOrderByIds(List<Long> ids);

    void deleteOrder(Long id, String description);

    ResponseEntity<?> mergeOrders(MergeOrdersDTO mergeOrdersDTO);

    OrderDetailVO getOrderDetail(Long id);
}
